import request from '@/utils/request'

// 查询发票附件列表
export function listInvoicefile(query) {
  return request({
    url: '/Invoice/invoicefile/list',
    method: 'get',
    params: query
  })
}

// 查询发票附件详细
export function getInvoicefile(fileId) {
  return request({
    url: '/Invoice/invoicefile/' + fileId,
    method: 'get'
  })
}

// 新增发票附件
export function addInvoicefile(data) {
  return request({
    url: '/Invoice/invoicefile',
    method: 'post',
    data: data
  })
}

// 修改发票附件
export function updateInvoicefile(data) {
  return request({
    url: '/Invoice/invoicefile',
    method: 'put',
    data: data
  })
}

// 删除发票附件
export function delInvoicefile(fileId) {
  return request({
    url: '/Invoice/invoicefile/' + fileId,
    method: 'delete'
  })
}

export function getInvoicecheckfile(mid) {
  return request({
    url: '/system/wecom/getkpcheckfile/' + mid,
    method: 'get'
  })
}